<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

/**
 * Class User
 * @property integer $id
 * @property string $nick_name
 * @property string $avatar
 * @property string $country_code
 * @property string $mobile
 * @property string $open_id
 * @property string $union_id
 * @property string $session_key
 * @property string $api_token
 * @property integer $last_active_time
 * @package App
 */
class User extends Authenticatable
{
    use Notifiable;

    const DEFAULT_AVATAR = 'https://gushiguo.oss-cn-shenzhen.aliyuncs.com/book/classify/icon/f3a13fda372533dd87f725319e07b7b7.png';
    //    /**
    //     * The attributes that are mass assignable.
    //     *
    //     * @var array
    //     */
    //    protected $fillable = [
    //        'name', 'email', 'password',
    //    ];
    //
    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password',
        'remember_token',
    ];
}
